package com.jshoperxms.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Objects;

/**
 * Created by sdywcd on 2019/12/15.
 * Des:
 */
@Entity
@Table(name = "pay_ldgiftamount_t", schema = "jshoperxms", catalog = "")
public class PayLdgiftamountT {
    private String id;
    private BigDecimal amount;
    private BigInteger createtime;
    private BigInteger updatetime;
    private String status;
    private int versiont;
    private int paytimes;
    private String bustype;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "AMOUNT", nullable = false, precision = 2)
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public BigInteger getCreatetime() {
        return createtime;
    }

    public void setCreatetime(BigInteger createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public BigInteger getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(BigInteger updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "PAYTIMES", nullable = false)
    public int getPaytimes() {
        return paytimes;
    }

    public void setPaytimes(int paytimes) {
        this.paytimes = paytimes;
    }

    @Basic
    @Column(name = "BUSTYPE", nullable = false, length = 45)
    public String getBustype() {
        return bustype;
    }

    public void setBustype(String bustype) {
        this.bustype = bustype;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PayLdgiftamountT that = (PayLdgiftamountT) o;
        return versiont == that.versiont &&
                paytimes == that.paytimes &&
                Objects.equals(id, that.id) &&
                Objects.equals(amount, that.amount) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(updatetime, that.updatetime) &&
                Objects.equals(status, that.status) &&
                Objects.equals(bustype, that.bustype);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, amount, createtime, updatetime, status, versiont, paytimes, bustype);
    }
}
